﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries
{
	public class ArticleByUsernameAndSlug :IDomainQuery<Article>

	{
		public ArticleByUsernameAndSlug(string username, string slug)
		{
			Expression = article =>
			article.Username == username && article.Slug == slug;
		}
		#region IDomainQuery<Article> Members

		public System.Linq.Expressions.Expression<Func<Article, bool>> Expression
		{
			get;private set;
		}

		#endregion
	}
}
